#include <deDriver_priv.hpp>
Inheritance diagram for deDriver:


Public Member Functions | |
| virtual deBoolean | Init (HWND WindowHandle)=0 |
| virtual deBoolean | SetDisplay (deDisplay *Display)=0 |
| virtual deBoolean | Reset (deDisplay *Display=NULL)=0 |
| const deDisplay * | GetDisplay () const |
| Get a pointer to the driver's internally-held display struct. | |
| virtual deBoolean | GetCurrentDisplay (long Adapter, deDisplay *Display) const=0 |
| virtual deBoolean | GetDisplayMode (long Adapter, long Mode, deDisplay *Display) const=0 |
| virtual const deDriverCaps * | GetCaps (long Adapter) const=0 |
| Fill a deDriverCaps structure with an adapter's device capabilities. | |
| deRect | UpdateWindowRect () |
| Update the driver's knowledge of the client-window rect. | |
| deRect | GetDisplayRect () const |
| Get the driver's internally-held client-window rect. | |
| virtual long | GetAdapterCount () const=0 |
| Get the number of adapters supported under this driver. | |
| virtual long | GetModeCount (long Adapter) const=0 |
| Get the number of modes for a particular adapter. | |
| virtual deBoolean | WindowedAllowed (long Adapter) const=0 |
| Test whether windowed mode is allowed on a particular adapter. | |
| virtual deBoolean | ValidFormat (long Adapter, Resource ResourceType, BPP BPPType, ZPP ZPPType, BPP FrontBuffer, long ExtraFlag) const=0 |
| Test for a valid format for various resource types. | |
| long | BitDepth (BPP BPPType) const |
| Get the bit-depth of a particular color format. | |
| long | BitDepth (ZPP ZPPType) const |
| Get the bit-depth of a particular z-buffer format. | |
| long | StencilDepth (ZPP ZPPType) const |
| Get the bit-depth devoted to stencil channel in z-buffer format. | |
| deBoolean | HasStencil (ZPP ZPPType) const |
| Test whether a particular z-buffer format supports stenciling. | |
| BPP | DownSampleFormat (BPP OriginalFormat) const |
| virtual deBoolean | AddVertexBuffer (IdeVertexBuffer *Vertex)=0 |
| Add a vertex buffer to the driver. | |
| virtual deBoolean | RemoveVertexBuffer (IdeVertexBuffer *Vertex)=0 |
| Remove a vertex buffer from the driver. | |
| virtual deBoolean | UpdateVertexBuffer (IdeVertexBuffer *Vertex)=0 |
| Update a vertex buffer so the driver's internal data matches it. | |
| virtual deBoolean | AddShader (IdeShader *Shader)=0 |
| virtual deBoolean | SetShader (IdeShader *Shader)=0 |
| virtual deBoolean | RemoveShader (IdeShader *Shader)=0 |
| virtual deBoolean | BeginFrame ()=0 |
| Call before rendering anything. | |
| virtual deBoolean | EndFrame ()=0 |
| Finish the render and update the front-buffer. | |
| virtual deBoolean | ClearFrame (deARGB Color, deBoolean ClearTarget=deTRUE, deBoolean ClearZBuffer=deTRUE, deBoolean ClearStencil=deTRUE)=0 |
| Clear the frame with a particular color. | |
| virtual deBoolean | Render (IdeVertexBuffer *Vertex, long IndexOffset, IdeVertexBuffer *IndexOverride)=0 |
| Render the selected Vertex Buffer to the back-buffer. | |
| virtual deBoolean | SetViewport (long X, long Y, long Width, long Height, deFloat MinZ, deFloat MaxZ)=0 |
| Set the screen-space viewport. | |
| virtual deBoolean | SetFOVClipping (deFloat FOV, deFloat Aspect, deFloat ClipNear, deFloat ClipFar)=0 |
| Set up a perspective view transformation. | |
| virtual deBoolean | SetOrthoClipping (deFloat Width, deFloat Height, deFloat ClipNear, deFloat ClipFar, deBoolean Invert=deFALSE)=0 |
| Set up an orthographic (parallel projection) view transformation. | |
| virtual deBoolean | SetFOVClippingSubRect (deFloat FOVY, deFloat Aspect, deFloat ClipNear, deFloat ClipFar, deRect SubRect)=0 |
| Set up a perspective view transformation with a sub-rect specified in the [0,1] range. | |
| virtual deBoolean | SetFOVClippingSubRectFloat (deFloat FOVY, deFloat Aspect, deFloat ClipNear, deFloat ClipFar, deFloatRect SubRect)=0 |
| virtual deBoolean | SetOrthoClippingSubRect (deFloat Width, deFloat Height, deFloat ClipNear, deFloat ClipFar, deBoolean Invert, deRect SubRect)=0 |
| Set up an orthographic (parallel projection) view transformation with a sub-rect specified in the [0,1] range. | |
| virtual deBoolean | SetOrthoClippingSubRectFloat (deFloat Width, deFloat Height, deFloat ClipNear, deFloat ClipFar, deBoolean Invert, deFloatRect SubRect)=0 |
| virtual deBoolean | SetScissorRect (deRect ScissorRect)=0 |
| virtual deBoolean | SetCameraTransform (deTransformInfo *M)=0 |
| Set the camera transform (position and orientation). | |
| virtual deBoolean | SetCameraTransform (deVertex *Eye, deVertex *At, deVertex *Up)=0 |
| virtual deBoolean | SetCameraTranslation (deVertex *Translation)=0 |
| virtual deBoolean | SetCameraRotation (deVertex *Rotation)=0 |
| virtual deBoolean | ResetCameraIdentity ()=0 |
| virtual deBoolean | SetWorldTransform (deVertex *Eye, deVertex *At, deVertex *Up)=0 |
| virtual deBoolean | SetWorldTransform (deTransformInfo *Mat)=0 |
| Set the world transform (to take things from "object space" to "world space"). | |
| virtual deBoolean | SetWorldTranslation (deVertex *Translation)=0 |
| virtual deBoolean | SetWorldRotation (deVertex *Rotation)=0 |
| virtual deBoolean | ResetWorldIdentity ()=0 |
| virtual deBoolean | AddBitmap (IdeBitmap *Bitmap)=0 |
| Adds a bitmap to the driver, turning it into a driver texture, and possibly a render-target. | |
| virtual deBoolean | AddBitmapProxy (IdeBitmapProxy *BitmapProxy)=0 |
| Adds a bitmap to the driver, turning it into a driver texture, and possibly a render-target. | |
| virtual deBoolean | RemoveBitmap (IdeBitmap *Bitmap)=0 |
| Removes a bitmap from a driver by deleting the internal driver texture. | |
| virtual deBoolean | RenderTo (IdeBitmap *Bitmap, long CubeMapFace)=0 |
| virtual deBoolean | ScreenShot (IdeBitmap *&pBitmap, deBoolean GrabWindow)=0 |
| virtual deBoolean | GetVideoTexture (IdeBitmap *pBitmap, long CubeMapFace)=0 |
| virtual unsigned long | GetRenderState (RenderState State)=0 |
| Get current value of the State passed in. | |
| virtual deBoolean | SetRenderState (const IdeRenderState *State)=0 |
| Set a class-based render-state (texture, material, or light). | |
| virtual deBoolean | SetRenderState (RenderState State, unsigned long Value)=0 |
| Set a value-based render-state. | |
| virtual deBoolean | EnableLight (long LightID, deBoolean Enable)=0 |
| virtual deBoolean | DisableAllLights ()=0 |
| Disable all fixed-function lights. | |
| unsigned long | GetQualityFlag (QualityFlag Flag) |
| Get the status of a particular quality flag. | |
| deBoolean | SetQualityFlag (QualityFlag Flag, unsigned long Value) |
| Set the status of a particular quality flag. | |
| virtual IdeDriver::Types | GetType () const=0 |
| Get the type of driver this is. | |
| virtual deDriverInfo * | GetInfo () const=0 |
| Get some information about the driver. | |
| long | GetCount () |
| void | LogInfo (char *Data,...) |
| Log text to the driver's log file. | |
| deDriverStats * | GetDriverStats () |
| Get a pointer to the driver's internal statistics structure. | |
| void | ResetDriverStats () |
| Reset the driver's internal statistics structure to all zeroes. | |
Protected Member Functions | |
| deDriver () | |
| virtual | ~deDriver () |
| void | SetDefaultRenderstates () |
| virtual void | InvalidateRenderStates (deBoolean Valid)=0 |
Protected Attributes | |
| deDisplay | m_CurrentDisplay |
| HWND | m_CurWindowHandle |
| long | m_UniqueID |
| deRect | m_ClientRect |
| deRect | m_SourceRect |
| unsigned long | m_RenderStates [RENDER_COUNT] |
| unsigned long | m_QualityFlags [QUALITY_FLAG_COUNT] |
| deDriverStats | m_Stats |
| deDriver::deViewport | m_CurrentViewport |
|
|
|
|
|
|
|
|
Adds a bitmap to the driver, turning it into a driver texture, and possibly a render-target.
Implements IdeDriver. Implemented in deDirect3D8, deDirect3D9, and deOpenGL. |
|
|
Adds a bitmap to the driver, turning it into a driver texture, and possibly a render-target.
Implements IdeDriver. Implemented in deDirect3D8, deDirect3D9, and deOpenGL. |
|
|
Implements IdeDriver. Implemented in deDirect3D8, deDirect3D9, and deOpenGL. |
|
|
Add a vertex buffer to the driver.
Implements IdeDriver. Implemented in deDirect3D8, deDirect3D9, and deOpenGL. |
|
|
Call before rendering anything.
Implements IdeDriver. Implemented in deDirect3D8, deDirect3D9, and deOpenGL. |
|
|
Get the bit-depth of a particular z-buffer format.
Implements IdeDriver. |
|
|
Get the bit-depth of a particular color format.
Implements IdeDriver. |
|
||||||||||||||||||||
|
Clear the frame with a particular color.
Implements IdeDriver. Implemented in deDirect3D8, deDirect3D9, and deOpenGL. |
|
|
Disable all fixed-function lights.
Implements IdeDriver. Implemented in deDirect3D8, deDirect3D9, and deOpenGL. |
|
|
|
|
||||||||||||
|
Implements IdeDriver. Implemented in deDirect3D8, deDirect3D9, and deOpenGL. |
|
|
Finish the render and update the front-buffer.
Implements IdeDriver. Implemented in deDirect3D8, deDirect3D9, and deOpenGL. |
|
|
Get the number of adapters supported under this driver.
Implements IdeDriver. Implemented in deDirect3D8, deDirect3D9, and deOpenGL. |
|
|
Fill a deDriverCaps structure with an adapter's device capabilities.
Implements IdeDriver. Implemented in deDirect3D8, deDirect3D9, and deOpenGL. |
|
|
Implements IdeDriver. |
|
||||||||||||
|
Fill a deDisplay with an adapter's CURRENT (even un-renderable) display settings. If a fullscreen rendering mode has not been set up, this will be the desktop settings. Implements IdeDriver. Implemented in deDirect3D8, deDirect3D9, and deOpenGL. |
|
|
Get a pointer to the driver's internally-held display struct.
Implements IdeDriver. |
|
||||||||||||||||
|
Feed in a display struct to be filled in for the enumerated mode
Implements IdeDriver. Implemented in deDirect3D8, deDirect3D9, and deOpenGL. |
|
|
Get the driver's internally-held client-window rect.
Implements IdeDriver. |
|
|
Get a pointer to the driver's internal statistics structure.
Implements IdeDriver. |
|
|
Get some information about the driver.
Implements IdeDriver. Implemented in deDirect3D8, and deDirect3D9. |
|
|
Get the number of modes for a particular adapter.
Implements IdeDriver. Implemented in deDirect3D8, deDirect3D9, and deOpenGL. |
|
|
Get the status of a particular quality flag.
Implements IdeDriver. |
|
|
Get current value of the State passed in.
Implements IdeDriver. Implemented in deDirect3D8, deDirect3D9, and deOpenGL. |
|
|
Get the type of driver this is.
Implements IdeDriver. Implemented in deDirect3D8, deDirect3D9, and deOpenGL. |
|
||||||||||||
|
Implements IdeDriver. Implemented in deDirect3D8, deDirect3D9, and deOpenGL. |
|
|
Test whether a particular z-buffer format supports stenciling.
Implements IdeDriver. |
|
|
Implements IdeDriver. Implemented in deDirect3D8, deDirect3D9, and deOpenGL. |
|
|
Implemented in deDirect3D8, deDirect3D9, and deOpenGL. |
|
||||||||||||
|
Log text to the driver's log file.
Implements IdeDriver. |
|
|
Removes a bitmap from a driver by deleting the internal driver texture.
Implements IdeDriver. Implemented in deDirect3D8, deDirect3D9, and deOpenGL. |
|
|
Implements IdeDriver. Implemented in deDirect3D8, deDirect3D9, and deOpenGL. |
|
|
Remove a vertex buffer from the driver.
Implements IdeDriver. Implemented in deDirect3D8, deDirect3D9, and deOpenGL. |
|
||||||||||||||||
|
Render the selected Vertex Buffer to the back-buffer.
Implements IdeDriver. Implemented in deDirect3D8, deDirect3D9, and deOpenGL. |
|
||||||||||||
|
Sets the current render-target to the bitmap passed in, if the bitmap can be a render-target.
Implements IdeDriver. Implemented in deDirect3D8, deDirect3D9, and deOpenGL. |
|
|
Reset the driver, possibly with altered display properties. Resetting will cause all vertex buffers and textures to be flushed
Implements IdeDriver. Implemented in deDirect3D8, deDirect3D9, and deOpenGL. |
|
|
Implemented in deDirect3D8, deDirect3D9, and deOpenGL. |
|
|
Reset the driver's internal statistics structure to all zeroes.
Implements IdeDriver. |
|
|
Implemented in deDirect3D8, deDirect3D9, and deOpenGL. |
|
||||||||||||
|
Copies the frontbuffer into the bitmap specified cannot be a render-target
Implements IdeDriver. Implemented in deDirect3D8, deDirect3D9, and deOpenGL. |
|
|
Implemented in deDirect3D8, deDirect3D9, and deOpenGL. |
|
||||||||||||||||
|
Implemented in deDirect3D8, deDirect3D9, and deOpenGL. |
|
|
Set the camera transform (position and orientation).
Implements IdeDriver. Implemented in deDirect3D8, deDirect3D9, and deOpenGL. |
|
|
Implemented in deDirect3D8, deDirect3D9, and deOpenGL. |
|
|
|
|
|
Set the display up, creating a new internal render device
Implements IdeDriver. Implemented in deDirect3D8, deDirect3D9, and deOpenGL. |
|
||||||||||||||||||||
|
Set up a perspective view transformation.
Implements IdeDriver. Implemented in deOpenGL. |
|
||||||||||||||||||||||||
|
Set up a perspective view transformation with a sub-rect specified in the [0,1] range.
Implements IdeDriver. Implemented in deDirect3D8, deDirect3D9, and deOpenGL. |
|
||||||||||||||||||||||||
|
Implements IdeDriver. Implemented in deDirect3D8, deDirect3D9, and deOpenGL. |
|
||||||||||||||||||||||||
|
Set up an orthographic (parallel projection) view transformation.
Implements IdeDriver. Implemented in deOpenGL. |
|
||||||||||||||||||||||||||||
|
Set up an orthographic (parallel projection) view transformation with a sub-rect specified in the [0,1] range.
Implements IdeDriver. Implemented in deDirect3D8, deDirect3D9, and deOpenGL. |
|
||||||||||||||||||||||||||||
|
Implements IdeDriver. Implemented in deDirect3D8, deDirect3D9, and deOpenGL. |
|
||||||||||||
|
Set the status of a particular quality flag.
Implements IdeDriver. |
|
||||||||||||
|
Set a value-based render-state.
Implements IdeDriver. Implemented in deDirect3D8, deDirect3D9, and deOpenGL. |
|
|
Set a class-based render-state (texture, material, or light).
Implements IdeDriver. Implemented in deDirect3D8, deDirect3D9, and deOpenGL. |
|
|
Implements IdeDriver. Implemented in deDirect3D9. |
|
|
Implements IdeDriver. Implemented in deDirect3D8, deDirect3D9, and deOpenGL. |
|
||||||||||||||||||||||||||||
|
Set the screen-space viewport.
Implements IdeDriver. Implemented in deOpenGL. |
|
|
Implemented in deDirect3D8, deDirect3D9, and deOpenGL. |
|
|
Set the world transform (to take things from "object space" to "world space").
Implements IdeDriver. Implemented in deDirect3D8, deDirect3D9, and deOpenGL. |
|
||||||||||||||||
|
Implemented in deDirect3D8, deDirect3D9, and deOpenGL. |
|
|
Implemented in deDirect3D8, deDirect3D9, and deOpenGL. |
|
|
Get the bit-depth devoted to stencil channel in z-buffer format.
Implements IdeDriver. |
|
|
Update a vertex buffer so the driver's internal data matches it.
Implements IdeDriver. Implemented in deDirect3D8, deDirect3D9, and deOpenGL. |
|
|
Update the driver's knowledge of the client-window rect.
Implements IdeDriver. |
|
||||||||||||||||||||||||||||
|
Test for a valid format for various resource types.
Implements IdeDriver. Implemented in deDirect3D8, deDirect3D9, and deOpenGL. |
|
|
Test whether windowed mode is allowed on a particular adapter.
Implements IdeDriver. Implemented in deDirect3D8, deDirect3D9, and deOpenGL. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3-rc3